
* {
  user-select: none;
  -webkit-user-select: none;
}

[nz-input], nz-select, nz-date-picker, nz-tree-select, nz-range-picker {
  width: 250px;
}

.flexRow {
  margin-top: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
  position: relative;
}

.grayText {
  color: #999999;
  margin-left: 8px;
}

.image {
  width: 100px;
  height: 100px;
  display: inline-block;
  position: relative;
  border: 1px solid rgba(0, 0, 0, .1);
  margin-right: 8px;

  .btnRow {
    position: absolute;
    height: 100%;
    width: 100%;
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    color: white;

    i:first-child {
      margin-right: 8px;
    }
  }

  &:hover {
    .btnRow {
      display: flex;
    }
  }

  img {
    width: 100px;
    height: 100px;
  }
}

// 基础信息
.base {
  h2 {
    display: inline-block;
    width: 120px;
    text-align: right;
  }

  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .3);

  [nz-input] {
    width: 80px;
  }

  label {
    display: inline-block;
    width: 120px;
    margin-right: 8px;
    text-align: right;

    span {
      color: red;
    }
  }
}

// 题目
.question {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .3);

  h2 {
    display: inline-block;
    width: 120px;
    text-align: right;
  }

  .content {
    padding-left: 128px;
  }

  .col {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 8px;

    [nz-input] {
      width: 80px;
    }

    nz-select {
      width: 120px;
      margin-right: 8px;
    }

    .usedPrice {
      display: inline-block;
      width: 200px;
    }

    .newPrice {
      display: inline-block;
      width: 200px;
    }
  }

  .optionItem {
    [nz-checkbox] {
      margin-right: 8px;
    }
  }

}

.blockTitle {
  position: relative;

  h2 {
    display: inline-block;
    width: 120px;
    text-align: right;
  }
}

.customShow {
  .item {
    padding: 0 8px 8px 8px;
  }

  .item:hover {
    background: rgba(0, 0, 0, .03);
  }

  .optionRelations {
    nz-select {
      width: 200px;
      margin-right: 8px;
    }
  }

  .price {
    display: flex;
    flex-direction: row;
    align-items: center;

    nz-select {
      width: 100px;
      margin-right: 4px;
    }

    nz-input-number {
      margin-right: 4px;
    }
  }
}

//特殊设置
.custom {
  .content {
    .item {
      padding: 8px 0;

      .optionRelations {
        .addBtn {
          text-align: center;
          margin-bottom: 8px;
          color: #00b7ee;
        }

        nz-select {
          width: 200px;
          margin-right: 12px;
        }

        .flexRow {
          margin-top: 0;
          margin-bottom: 4px;

          nz-select {
            margin-right: 24px;
          }
        }
      }
    }

    .price {
      [nz-input] {
        width: 80px;
      }

      nz-select {
        width: 120px;
        margin-right: 8px;
      }

      .usedPrice {
        margin-right: 12px;
        //display: inline-block;
        //width: 200px;
      }

      .newPrice {
        //display: inline-block;
        //width: 200px;
      }

    }
  }

}

.optionPriceModalUsedPrice,
.optionPriceModalNewPrice {
  margin-top: 8px;

  [nz-input] {
    width: 80px;
  }

  nz-select {
    width: 120px;
    margin-right: 8px;
  }

}

// 添加特殊设置
.addCustom {
  height: 40px;
  line-height: 40px;
  text-align: center;
  margin-top: 8px;

  span:nth-child(1) {
    color: #00b7ee;
    margin-right: 24px;
  }

  span:nth-child(2) {
    color: #ff4d4f;
  }

  &:hover {
    cursor: pointer;
  }
}

.footer {
  justify-content: flex-end;

  button {
    margin-right: 8px;
  }
}

// 基础信息
.baseQuestion {
  h2 {
    display: inline-block;
    width: 120px;
    text-align: right;
  }

  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .3);

  [nz-input] {
    width: 80px;
  }

  label {
    display: inline-block;
    width: 120px;
    margin-right: 8px;
    text-align: right;

    span {
      color: red;
    }
  }

  nz-col {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: row;
    align-items: center;
    //justify-content: center;
  }

  .baseQuestionRow {

    margin-top: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;

    [nz-input], nz-input-number {
      width: 100px;
    }

    nz-select {
      width: 100px;
      margin-right: 8px;
    }

    .preview {
      display: inline-block;
      width: 62px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
}
